package com.ruoyi.cms.domain;

import java.beans.Transient;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 反馈对象 sys_cms_feedback
 * 
 * @author he
 * @date 2025-06-24
 */
public class SysCmsFeedback extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;

    /** 评分 */
    @Excel(name = "评分")
    private BigDecimal score;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 年龄类型 */
    @Excel(name = "年龄类型")
    private Long ageType;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 收入 */
    @Excel(name = "收入")
    private String income;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }

    public void setAgeType(Long ageType) 
    {
        this.ageType = ageType;
    }

    public Long getAgeType() 
    {
        return ageType;
    }

    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }

    public void setIncome(String income) 
    {
        this.income = income;
    }

    public String getIncome() 
    {
        return income;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    // 新增临时字段（不需要持久化到数据库）
    private String formattedDate;

    // getter和setter
    public String getFormattedDate() {
        return formattedDate;
    }

    public void setFormattedDate(String formattedDate) {
        this.formattedDate = formattedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("avatar", getAvatar())
            .append("score", getScore())
            .append("userName", getUserName())
            .append("age", getAge())
            .append("ageType", getAgeType())
            .append("sex", getSex())
            .append("income", getIncome())
            .append("title", getTitle())
            .append("content", getContent())
            .append("date", getDate())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .toString();
    }
}
